import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
{
  path:'/recommend',
  component:()=>import('@/views/Recommend')
},
{
  path:'/hot',
  component:()=>import('@/views/Hot')
},
{
  path:'/search',
  component:()=>import('@/views/Search')
},
{
  path:'/playlist/:id',
  component:()=>import('@/views/PlayList')
},
{
  path:'/songinformation/:id',
  component:()=>import('@/views/SongInformation')
}
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
